package com.saclub.app.fragment;

import com.loopj.android.http.RequestParams;
import com.saclub.app.R;
import com.saclub.app.common.Constants.NewsTypeEnum;
import com.saclub.app.http.ApiRequest;

/**
 * 态度
 * 
 * @author li.li
 *
 */
public class MainTabAttitudeFragment extends NewsListFragment{
	
	@Override
	protected void initView() {
		//标题
		caller.setTitle(R.string.main_tab_attitude_title);
		caller.getToolBar().setBackgroundColor(getResources().getColor(R.color.cl_title_attitude));

	}
	
	@Override
	protected void initData() {

		if (!isAdded())
			return;

		RequestParams params = new RequestParams();
		params.put("type_id", NewsTypeEnum.type_13.getType());
		ApiRequest.news.request(this, params);

	}
	
	@Override
	public void onBackPressed() {
	}
}
